function Api() {

}

Api.urls = {
    currentAuth: '/front/authorization/current'
};

$(function () {
    $.get(Api.urls.currentAuth, function (res) {
        if (res.code === 0) {
            console.log('Already logged in');
        } else {
            window.location.href = '/login.html';
        }
    }, 'json');
});